﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Admin_AccessCopy.aspx.cs" Inherits="admin_Admin_AccessCopy" %>

<%@ Register Src="../Controls/AdminCheck.ascx" TagName="AdminCheck" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    <link href="Images/css1/css.css" rel="stylesheet" type="text/css">
</head>
<SCRIPT language=javascript>
<!--
var displayBar=true;
function switchBar(obj){
	if (displayBar)
	{
		parent.frame.cols="0,*";
		displayBar=false;
		obj.value="打开左边管理菜单";
	}
	else{
		parent.frame.cols="195,*";
		displayBar=true;
		obj.value="关闭左边管理菜单";
	}
}

function fullmenu(url){
	if (url==null) {url = "admin_left.asp";}
	parent.leftFrame.location = url;
}

//-->
</SCRIPT>
<body>
     <form id="form1" runat="server">
<table class="table" cellspacing="1" cellpadding="2" width="auto" align="center" border="0">
  <tbody>
    <tr>
      <th class="bg_tr" align="left" colspan="4" height="25"> <span style="font-size:18px;">数据库管理系统</span>   
      <input onClick="switchBar(this)" type="button" value="关闭左边管理菜单" name="SubmitBtn" /></th>
    </tr>
        <tr>
      <td class="td_bg" colspan="4">
          请输入新备份的数据库名称： <asp:TextBox ID="Acopy" runat="server"></asp:TextBox> <asp:Button ID="Button3" runat="server" Text="备份新数据库" OnClick="Button3_Click"  /> 
      </td>
      </tr>
    <tr>
      <td class="td_bg" colspan="4">    
      <asp:GridView ID="UserList" runat="server"  AutoGenerateColumns="False" OnRowDataBound="UserList_RowDataBound" HorizontalAlign="Center" OnRowDeleting="UserList_RowDeleting" OnRowEditing="UserList_RowEditing"  OnRowUpdating="UserList_RowUpdating" OnRowCancelingEdit="UserList_RowCancelingEdit">
       <Columns>
           <asp:TemplateField HeaderText="删除"  HeaderStyle-Width="40" ItemStyle-HorizontalAlign="Center" >
             <ItemTemplate>
             <asp:CheckBox ID="del" runat="server" />
             </ItemTemplate>
           </asp:TemplateField>
               <asp:BoundField   DataField="AccessName" HeaderText="数据库名称"  HeaderStyle-Width="300" ItemStyle-HorizontalAlign="Center" />
               <asp:BoundField   DataField="AccessTime" HeaderText="创建时间"  HeaderStyle-Width="200" ItemStyle-HorizontalAlign="Center" />
               <asp:CommandField HeaderText="编辑" ShowEditButton="True"  HeaderStyle-Width="40"  ItemStyle-HorizontalAlign="Center" />
               <asp:CommandField HeaderText="还原" DeleteText="还原" ShowDeleteButton="True" HeaderStyle-Width="40" ItemStyle-HorizontalAlign="Center" />
        </Columns>
         <HeaderStyle BackColor="#E4F1FA" Font-Bold="True" ForeColor="#006699" />
           </asp:GridView></td>
    </tr>
        <tr> 
      <td class="bg_tr" align="left" colspan="4" height="26">
      <div style="float:left;"> <asp:Button ID="Button2" runat="server" Text="全选" OnClick="Button2_Click"   CssClass="input_1" />
      <asp:Button ID="Button1" runat="server" OnClientClick="javascript:return confirm('你确认要删除吗?');" Text="删除" OnClick="Button1_Click"  CssClass="input_1" /></div>
    </td>
    </tr>
  </tbody>
</table>
         <uc1:AdminCheck ID="AdminCheck1" runat="server" />
    </form>
</body>
</html>
